package com.mytijian.runtime.executor;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
 * 服务工作者缓存
 * @author Administrator
 *
 */
public class ServiceWorkerCache {

	private static Map<String, ServiceWorker> serviceWorkerCache = new ConcurrentHashMap<String, ServiceWorker>();
	
	public static ServiceWorker getServiceWorker(String serviceName){
		return serviceWorkerCache.get(serviceName);
	}

	public static void putServiceWorker(String serviceName, ServiceWorker serviceWorker) {
		serviceWorkerCache.put(serviceName, serviceWorker);
	}
	
}
